package com.elot.controller.user.dwo;

import com.elot.dto.UserDto;

public class UserDwo {

	String id;
	String userName;

	public UserDwo() {
	}
	
	public UserDto asUser() {
		Long idl = id!=null&&!"".equals(id) ? Long.parseLong(id) : null;
		return new UserDto(idl, userName);
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
